]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Reset window opacity after overview transitions
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 11 Jul 2020 15:49:04 +0000 (17:49 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 13 Jul 2020 17:24:43 +0000 (17:24 +0000)
When using the fade animation when transitioning to the overview instead
of zoom, we fade out all window previews to fully transparent. But after
commit 751189253a removed the old _updateWindowPositions() function,
nothing resets the opacity again, so when switching from the app- to the
window picker, all previews are hidden.

Fix this by always resetting the window preview opacity after showing
or hiding the overview.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969

js/ui/workspace.js

index bbf61da33c4c15594492626c4917279d7a8c208c..164084a88452aadd17d074f814838e9f089b79b1 100644 (file)
@@ -1194,10 +1194,12 @@ class Workspace extends St.Widget {
 
     _doneLeavingOverview() {
         this.layout_manager.layout_frozen = false;
+        this._windows.forEach(w => (w.opacity = 255));
     }
 
     _doneShowingOverview() {
         this.layout_manager.layout_frozen = false;
+        this._windows.forEach(w => (w.opacity = 255));
     }
 
     _isMyWindow(window) {